/**
 * 本文件由尚数增量代码引擎生成
 * @author Shann <851188611@qq.com>
 */
import { request } from "./request";

export function getUsers(param?: any) {
  return request("/admin/user", param);
}

export function getUser(param?: any) {
  return request("/admin/user/detail", param);
}

export function createUser(param?: any) {
  return request("/admin/user/create", param);
}

export function updateUser(param?: any) {
  return request("/admin/user/update", param);
}

export function deleteUser(param?: any) {
  return request("/admin/user/delete", param);
}

export function getRoles(param?: any) {
  return request("/admin/role", param);
}

export function createRole(param?: any) {
  return request("/admin/role/create", param);
}

export function updateRole(param?: any) {
  return request("/admin/role/update", param);
}

export function deleteRole(param?: any) {
  return request("/admin/role/delete", param);
}

export function getRole(param?: any) {
  return request("/admin/role/detail", param);
}
